package org.apache.lucene.ocean;

public class LargeBatchTransaction extends Transaction {
  private Long id;
  private Snapshot previousSnapshot;

  public LargeBatchTransaction(Long id, Snapshot previousSnapshot) {
    this.id = id;
    this.previousSnapshot = previousSnapshot;
  }
  
  public Snapshot getPreviousSnapshot() {
    return previousSnapshot;
  }
  
  // for now doesn't need to do anything
  public CommitResult call() throws Exception {
    return null;
  }
  
  public boolean go() {
    return true;
  }

  public void ready(Index index) {
    
  }

  public Long getId() {
    return id;
  }

  public void failed(Index index, Throwable throwable) {
    
  }
}
